package com.foreveross.chameleon.model;

/**
 * @description 模块实体类
 * @author zhouzhineng
 *
 */
public class ModuleInfo extends BaseModel{

	private static final long serialVersionUID = 6480941648093506971L;
	
	public static final int UNINSTALL = 0;
	public static final int INSTALLING = 1;
	public static final int INSTALLED = 2;
	public static final int DELETING = 3;
	public static final int DELETED = 4;
	public static final int UPGRADABLE = 5;
	public static final int UPGRADING = 6;
	public static final int PREINSTALL = 7;

	private String identifier = null;

	//private String icon = null;
	private String iconUrl = null;

	private String name = null;

	private String version = null;

	private int build = 0;

	private String category = null;

	//private String downloadUrl = null;
	private String moduleUrl = null;

	private String releaseNote = null;

	private boolean updatable = false;

	private String bundle = null;

	private int moduleType = -1;// 是否安装了

	private String local = null; // 指向本地

	private boolean hidden = false;

	private int pushMsgLink = 1;
	

	private String timeUnit; // 默认为空，可输入“H”、“M”、“S”
	private String showIntervalTime;// 时间间隔
	private boolean isAutoShow;// 是否自动弹出

	private int sortingWeight;// 权重
	private boolean autoDownload = true;// 是否自动下载
	private int showPushMsgCount;

	private String installIcon;// 保存icon的网络地址

	private int progress = 0;
	
	
	public void setProgress(int progress) {
		this.progress = progress;
	}
	
	public int getProgress() {
		return this.progress;
	}
	
	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getIconUrl() {
		return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public int getBuild() {
		return build;
	}

	public void setBuild(int build) {
		this.build = build;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getDownloadUrl() {
		return moduleUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.moduleUrl = downloadUrl;
	}

	public String getReleaseNote() {
		return releaseNote;
	}

	public void setReleaseNote(String releaseNote) {
		this.releaseNote = releaseNote;
	}

	public boolean isUpdatable() {
		return updatable;
	}

	public void setUpdatable(boolean updatable) {
		this.updatable = updatable;
	}

	public String getBundle() {
		return bundle;
	}

	public void setBundle(String bundle) {
		this.bundle = bundle;
	}

	public int getModuleType() {
		return moduleType;
	}

	public void setModuleType(int moduleType) {
		this.moduleType = moduleType;
	}

	public String getLocal() {
		return local;
	}

	public void setLocal(String local) {
		this.local = local;
	}

	public boolean isHidden() {
		return hidden;
	}

	public void setHidden(boolean hidden) {
		this.hidden = hidden;
	}

	public int getPushMsgLink() {
		return pushMsgLink;
	}

	public void setPushMsgLink(int pushMsgLink) {
		this.pushMsgLink = pushMsgLink;
	}

	public String getTimeUnit() {
		return timeUnit;
	}

	public void setTimeUnit(String timeUnit) {
		this.timeUnit = timeUnit;
	}

	public String getShowIntervalTime() {
		return showIntervalTime;
	}

	public void setShowIntervalTime(String showIntervalTime) {
		this.showIntervalTime = showIntervalTime;
	}

	public boolean isAutoShow() {
		return isAutoShow;
	}

	public void setAutoShow(boolean isAutoShow) {
		this.isAutoShow = isAutoShow;
	}

	public int getSortingWeight() {
		return sortingWeight;
	}

	public void setSortingWeight(int sortingWeight) {
		this.sortingWeight = sortingWeight;
	}

	public boolean isAutoDownload() {
		return autoDownload;
	}

	public void setAutoDownload(boolean autoDownload) {
		this.autoDownload = autoDownload;
	}

	public int getShowPushMsgCount() {
		return showPushMsgCount;
	}

	public void setShowPushMsgCount(int showPushMsgCount) {
		this.showPushMsgCount = showPushMsgCount;
	}

	public String getInstallIcon() {
		return installIcon;
	}

	public void setInstallIcon(String installIcon) {
		this.installIcon = installIcon;
	}

	public static int getUninstall() {
		return UNINSTALL;
	}

	public static int getInstalling() {
		return INSTALLING;
	}

	public static int getInstalled() {
		return INSTALLED;
	}

	public static int getDeleting() {
		return DELETING;
	}

	public static int getUpgradable() {
		return UPGRADABLE;
	}

	public static int getUpgrading() {
		return UPGRADING;
	}

	public static int getPreinstall() {
		return PREINSTALL;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	
	
}
